package view;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

import model.GlobalParams;

public class About extends JFrame {
	
	
	private static final long serialVersionUID = 1L;
	@SuppressWarnings("unused")
	private MainFrame frame;
	
	public About(MainFrame frame) {		
		this.frame = frame;		
		
		JPanel panel = new JPanel();
		panel.setLayout(new BorderLayout());
		
		JLabel label = new JLabel("<html>"
			    +  "<center>"
			    +  GlobalParams.getInstance().stringCollection.getOther_about() + "<br>"			     						
			    +  "</center>"
			    +
				"</html>");
		
		panel.add(BorderLayout.CENTER, label);
		this.add(panel);	
		this.setLocationRelativeTo(frame);
		setMinimumSize(new Dimension(300,300));
		setResizable(false);
		setTitle("JCommander");
		setVisible(true);
		
	}

}
